#ifndef _SERVERMANAGER_H
#define _SERVERMANAGER_H

#include <map>
#include <string>
#include <unistd.h>
#include <stdio.h>  
#include <stdlib.h>  
#include <malloc.h>  
#include <ev.h>  
#include <netinet/in.h>  
#include <arpa/inet.h>  
#include <sys/socket.h>  
#include <sys/types.h>  
#include <string.h>
#include "ev++.h"
#include "Callback.hpp"
#include "Handler.hpp"
#include "Server.hpp"

class ServerManager {
private:
	static std::map<std::string, Server *> ServerMap;

public:
	static Server *getServer(std::string name, const char *ip_addr, int port);
	static void delServer(std::string name);
};

#endif